<?php
namespace app\admin\controller;

use think\Controller;
use think\Db;

class Edit extends Controller
{
    public function index($id)
    {
        // var_dump($id);die;
        $data = Db::table('rbac_user')->where('id= '.$id)->select();
        // echo Db::getlastSql();die;
        // var_dump($data);die;
        $this->assign('title','Redcat');
        return view('admin/edit',[
            'title' => '管理员列表',
            'data' => $data
        ]);

    }


    public function jump()
    {
        $this->success('添加成功',url('admin/login/login'));
        $this->error('添加失败');
    }
}